import { type RouteRecordRaw } from "vue-router";

export default <RouteRecordRaw[]>[
  {
    path: "/redirect",
    meta: {
      needLogin: false,
      addPrefix: false,
    },
    children: [
      {
        path: "/redirect/:path(.*)",
        component: () => import("@/views/redirect.vue"),
      },
    ],
  },
  // 将匹配所有内容并将其放 在 `$route.params.pathMatch` 下
  {
    path: "/:pathMatch(.*)*",
    name: "NotFound",
    meta: {
      title: "未找到",
      needLogin: false,
      addPrefix: false,
    },
    component: () => import("@/views/notfound.vue"),
  },
];
